using UnityEngine;

public class EnemyState_LangJianKe_受击 : EnemyStateBase_LangJianKe
{
	public override void OnEnter()
	{
		_Mono._Ani.Play("受击");
		_Mono._Rb2D.velocity = new Vector2((_Mono.transform.position.x > _Mono._BeAttack_Pos.x) ? 1 : (-1), 0f) * _Mono._BeAttack_击退力度;
		_Mono.transform.localScale = new Vector3((_Mono._BeAttack_Pos.x > _Mono.transform.position.x) ? 1 : (-1), 1f, 1f);
		_Timer = 0.3f;
	}

	public override void OnExit()
	{
	}

	public override void OnUpdate()
	{
		_Timer -= Time.deltaTime;
		if (_Timer <= 0f)
		{
			_Mono.ChangeState(StateType_Enemy_XiaoGuai.站立);
		}
	}
}
